/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CustomeControl;

import aptech.eproject.entity.Items;
import aptech.eproject.view.UserManagement;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;

/**
 *
 * @author Loveless
 */
public class CustomerActionListener implements ActionListener{
    public Items item;
    public UserManagement userManagement;
    public CustomerActionListener(Items itm,UserManagement userManagement) {
        this.item = itm;
        this.userManagement = userManagement;
    }

    @Override
    public void actionPerformed(ActionEvent ae) {
        userManagement.addItemCart(item);
        
        
    }
    
}
